package com.bcu.model.service;

import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @Author:Wls
 * @Date:9:28 2019/12/10
 * @Description: 上下文
 */
@Service
public class PayContext {

    private PayStrategy payStrategy;

    public PayContext(PayStrategy p){
        this.payStrategy =p;
    }

    public String doPay(Map<String,String> param){
        return payStrategy.doPay(param);
    }


}
